package edu.huangke.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class FirstController {

    @RequestMapping("/firstController")
    public String sayHello(){
        System.out.println("访问第一个 Controller");

        // string 返回值默认是 视图的名称
        return "hello";
    }
}
